<extend name="layout/edit" />

<block name="HEADER">

</block>

<block name="CONTENT">
    <control:form id="form"/>
</block>

<block name="FOOTER">
   <script type="text/javascript">
    var  page=(function(ns){
    	
     	
		ns.init = function(){
			
		}
        
        //保存
        ns.save=function(){
        	form.setValue('start_time', String(form.getValue('time_range')).split(' - ')[0] );
        	form.setValue('stop_time', String(form.getValue('time_range')).split(' - ')[1] );
        	form.save(4).then(function(res){
				form.opener.grid.load();
				$.close();
    		});
        }
        
        
        return ns;
    }({}));
    
    $(function(){ page.init(); });
   </script>
</block>



